package com.niit.mall.common.config;



import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.common.config
 * @Author: ChuXuan
 * @CreateTime: 2025-06-08  02:28
 * @Description: RabbitMQ 配置类
 * @Version: 1.0
 */
@Configuration
@ConditionalOnClass(RabbitTemplate.class)
public class MqConfig {
	
	@Bean
	public MessageConverter messageConverter() {
		return new Jackson2JsonMessageConverter();
	}
}
